package cn.bby.query.server.domain.agg.metadata.repository;

import cn.bby.query.server.domain.agg.metadata.entity.DsSettingsInfo;
import cn.bby.query.server.domain.agg.metadata.entity.DsTableInfo;
import org.springframework.transaction.annotation.Transactional;

import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @author wangbenyin
 * @version 1.0
 * @date 2025/07/01
 * @since 17
 */
public interface DsSettingsRepository {
    Map<String, Long> getAllTableNameIdMap();

    List<DsSettingsInfo> getAllTableInfos();

    Collection<DsTableInfo> getTableInfoByNames(Set<String> fullNames);

    @Transactional
    void createTableInfos(Set<String> tableFullNames);
}
